package com.sanjin.dubbo.transport;

import java.net.URL;

/**
 * @author: jiangxch
 * @date: 2021/2/15 下午6:31
 */
public interface Transporter {
    
    /**
     * 绑定IP获取服务端对象
     * @param url
     * @param channelHandel
     * @return
     */
    RemotingServer bind(URL url, ChannelHandel channelHandel);
    
    /**
     * 进行连接获取客户端对象
     * @param url
     * @param channelHandel
     * @return
     */
    Client connect(URL url, ChannelHandel channelHandel);
    
}
